package com.tedu.review.test;

public abstract class homework {
    public abstract void eat();
    public abstract void sleep();

    public static void main(String[] args) {
        homework homework=new homework() {
            public void eat() {
                System.out.println("吃");
            }
            public void sleep() {
                System.out.println("睡");
            }
        };
        homework.eat();
        homework.sleep();
    }
}
